#ifndef DOUBLESQUAREPULSE_HH
#define DOUBLESQUAREPULSE_HH

#include "Pulse.h"

#include "NewParameters.h"

class DoubleSquarePulse : public Pulse
{
private:
  double firstLevel;
  double secondLevel;
  double firstLength;
  double secondLength;
 
public:
  DoubleSquarePulse();
  virtual ~DoubleSquarePulse();

  void Current(NewParameters params);
  void Field(NewParameters params);
  double getLevel(double timestamp);
  double getSecondPulse();
  void setSecondPulse(double level);
};

#endif
